var mongoose = require("mongoose");
var uri = "mongodb://localhost/hr";


module.exports = function(){
	mongoose.set('debug',true);
	var db = mongoose.connect(uri);

    require('../app/models/index.model');

	return db;
}
@@ -38,16 +38,44 @@
 ar uri =
+ process.env.MONGOLAB_URI %7C%7C
  %22mongod

make it better