Added ability to update existing photos, and added debug SQL logging