text: var mongoose = require('mongoose');
  var dburl = process.env.MONGODB_URI || 'mongodb://localhost:27017/meanIBU';
  var retry = null;
  mongoose.connect(dburl);
  
  console.log(dburl);
  mongoose.connection.on('connected', function() {
    console.log('Mongoose connected to ' + dburl);
  });
  mongoose.connection.on('error', function(err) {
    console.log('Mongoose connection error: ' + err);
  });
  mongoose.connection.on('disconnected', function() {
    console.log('Mongoose disconnected');
  });
  
  function gracefulShutdown(msg, callback) {
    mongoose.connection.close(function() {
      console.log('Mongoose disconnected through ' + msg);
      callback();
    });
  }
  
  
  process.once('SIGUSR2', function() {
    gracefulShutdown('nodemon restart', function() {
      process.kill(process.pid, 'SIGUSR2');
    });
  });
  
  process.on('SIGINT', function() {
    gracefulShutdown('App termination (SIGINT)', function() {
      process.exit(0);
    });
  });
  
  process.on('SIGTERM', function() {
    gracefulShutdown('App termination (SIGTERM)', function() {
      process.exit(0);
    });
  });
  
  require('./restaurants.model');
  require('./users.model');
  