Export returns the filename to which your data was exported. Your code does insert that filename into your database, and you see that this actually does work. What you most probably want is to insert the file content, not the filename, into the database. For that you need a combination of
SQLBinary. This is described, as Ajasja has mentioned, in the documentation for
SQLBinary. Here is how it would look like for your example:
filecontent = ToCharacterCode[ExportString[resultimg1,"JPEG"]];
Depending on how you are going to read the data you might need to take care of the correct encoding, if you read and write both from the same machine with Mathematica I believe the defaults should work alright.