frame_photo : implemented database save of the photo.