main.js
function connect(mongodbUri, callback) {
  snapdb.connect(mongodbUri, function(err, client) {
    if (err) return callback(err);
    callback(null, client);
  });
}
function connect(mongodbUri, callback) {
  snapdb.connect(mongodbUri, function(err, client) {
    if (err) return callback(err);
    callback(null, client);
  });
}
function connect ( mongodbUri , callback ) { snapdb . connect ( mongodbUri , function ( err , client ) { if ( err ) return callback ( err ) ; callback ( null , client ) ; } ) ; }
Connect to the snapdb mongo database.
Connect to the snapdb mongo database .