The whole point of using the database is so that you can DYNAMICALLY populate a SINGLE PAGE TEMPLATE with the record from the database.
And that way you dont have to create an indivdual page for each record!
The psuedo code for what you are attempting is as follows...
1 - User clicks on thumbnail.
2 - Based on the thumnail clicked... The record is pulled from the database
3 - The data is bound to a request header and submitted to the TEMPLATE using a GET/POST method in a new window
I have said new window because you stated it should display in another page.