Put the images in the database