photos and database entry