'use strict';
var mongoose = require('mongoose');

module.exports = function(config){
	mongoose.connect(config.db);
	
	var db = mongoose.connection;
	db.on('error', console.error.bind(console, 'connection error:'));
	db.once('open', function (){
		console.log('Connected to database: ' + config.db);
	});
};
@@ -214,94 +214,7 @@
 );%0A%09
-db.once('open', function ()%7B%0A%09%09console.log('Connected to database: ' + config.db);%0A%09%7D);
 %0A%7D;

add database connection and configuration to mongodb