// db.js
// Instance of neo4j db used by all models

var neo4j = require('neo4j');

var db = new neo4j.GraphDatabase({
  // Support specifying database info via environment variables,
  // but assume Neo4j installation defaults.

  //for local change this to 'http://neo4j:password@localhost:7474'
  url: process.env['NEO4J_URL'] || process.env['GRAPHENEDB_URL'] || 
    'http://neo4j:password@localhost:7474',
  auth: process.env['NEO4J_AUTH']
});

console.log('DB in db module');
console.log(db);

module.exports = db;
// db.js
// Instance of neo4j db used by all models

var neo4j = require('neo4j');

var db = new neo4j.GraphDatabase({
  // Support specifying database info via environment variables,
  // but assume Neo4j installation defaults.

  //for local change this to 'http://neo4j:password@localhost:7474'
  url: process.env['NEO4J_URL'] || process.env['GRAPHENEDB_URL'] || 
    'http://app42960229:ILOdJGW9N5SoJPBc5qqu@app42960229.sb02.stations.graphenedb.com:24789',
  auth: process.env['NEO4J_AUTH']
});

console.log('DB in db module');
console.log(db);

module.exports = db;

Update db.js