Mongo DB call passed to route