added photos to database