code: function createPool(conn) {
    var conf = connectionConfig[conn.app][conn.env];
    conf.connStr = connStr(conn);
    console.log('Creating pool to : ' + conf.connStr);
    // Create the pool on the conf object for easy future access
    conf.pool = anydb.createPool(conf.connStr, {
      min: conf.min,
      max: conf.max,
      onConnect: function (conn, done) {
        done(null, conn);
      },
      reset: function (conn, done) {
        done(null);
      }
    });
    // Remember all connection pools for easy termination
    pools.push(conf.pool);
    return conf.pool;
  }
docs: Create the connection pool via any-db