adding, getting and removing photos using orm
moving functionality out of slideshow route