function breezeMongoQuery(req, res, next) {
        try {
            var slug = req.params.slug;
            var collectionName = getCollectionNameFrom(slug);
            var moQuery = new breezeMongo.MongoQuery(req.query);
            // could add filters here
            moQuery.execute(db, collectionName, processResults(res, next));
        } catch (ex) {
            var err = {
                statusCode: 404,
                message: 'Unable to execute query " ' + req.url + '"',
                error: ex
            };
            reportError(err, next);
        }
    }
MongoDb server routes for data access