changed the functionality of the PhotoFragment (all pictures) to work with the DB.