old_contents: var mongoose = require('mongoose');
  var env = require('../env.json');
  
  // Making mongoose use the default promise and not a third-party promise
  mongoose.Promise = global.Promise;
  
  var DB_USERNAME = process.env.DB_USERNAME || env['DB_USERNAME'];
  var DB_PASSWORD = process.env.DB_PASSWORD || env['DB_PASSWORD'];
  
  //console.log(DB_USERNAME);
  
  var uri = `mongodb://${DB_USERNAME}:${DB_PASSWORD}@ds119675.mlab.com:19675/intuition`;
  global.db = mongoose.connect(uri, {
      useMongoClient: true
  });
  
  global.db.on('error', console.error.bind(console, 'connection error:'));
  // mongoose.connect('mongodb://kowshik:kowshik@ds119675.mlab.com:19675/intuition', {
  //     useMongoClient: true
  // });
  
  module.exports = {mongoose};
  
new_contents: var mongoose = require('mongoose');
  // var env = require('../env.json');
  
  // Making mongoose use the default promise and not a third-party promise
  mongoose.Promise = global.Promise;
  
  // var DB_USERNAME = process.env.DB_USERNAME || env['DB_USERNAME'];
  // var DB_PASSWORD = process.env.DB_PASSWORD || env['DB_PASSWORD'];
  
  
  var uri = `mongodb://kowshik:kowshik@ds119675.mlab.com:19675/intuition`;
  global.db = mongoose.connect(uri, {
      useMongoClient: true
  });
  
  global.db.on('error', console.error.bind(console, 'connection error:'));
  // mongoose.connect('mongodb://kowshik:kowshik@ds119675.mlab.com:19675/intuition', {
  //     useMongoClient: true
  // });
  
  module.exports = {mongoose};
  
subject: fix for deploy