creating a script to test writing a single image to a database