Add photos to database