made insert script into database for image data