making a photo db