function addQueries(){
        var collectionNames = [
            'Customer',
            'Order',
            'OrderStatus',
            // Product is handled separately; see getProducts
            'ProductOption',
            'ProductSize'
        ];

        collectionNames.forEach(makeCollectionQueryFor);

        function makeCollectionQueryFor (collectionName) {
            var resourceName = pluralize(collectionName);
            repository['get'+resourceName.toLowerCase()] = function(queryString, next) {
                getDb(function(db){
                    var query  = new bmongo.MongoQuery(queryString);
                    query.execute( db, collectionName, next );
                }, next);
            };
        }
    }
adds query functions to the repo for certain collections
in the form of 'getresourcename' (e.g., 'getcustomers')
Private to this module