In the bindings panel within dreamweaver, the file name that is uploaded is stored. You can get various values associated with the upload under the WA Upload Files in Bindings. You should use these values to insert the values you want into your database.