updated to work with mongo. changed how photos work on the page.