// database connection instance
module.exports = {
  conn: function(){
    return require("massive").connectSync({
      connectionString : "postgres://databaseuser:password@host/database" // if use ssl: ?ssl=true"
    });
  }
};

// database connection instance
const massive = require('massive');
const connectionString = "postgres://<user>:<pwd>@<host>/<databasename>"; // if use ssl: ?ssl=true"

module.exports = {
  conn: massive(connectionString)
};

Update for new Massive version
Update for new Massive version