Wiring up the Mongo database to the photos table