text: var mongo = require('mongojs');
  
  module.exports = function (config) {
  	var collections = config.collections.map(function (c) {
  		return c.name;
  	});
  
  	return mongo.connect(config.mongo.connection, collections);
  };
  