We don't have to close the database manually anymore.
Display error dialog when photo load failed