Upload Photo now works with the database.