save new photos to db