you shouldn't save the path to the database as it will be a relative path that may be different from one page to another.
In the Database starter kit tutorial:
http://www.webassist.com/tutorials/Getting-started-with-MySQL-and-dynamic-websites
I go through using the file name column from a table in a recordset for creating dynamic images on your pages.