code: function InitDB(db_name) {
  
      var sequelize = new Sequelize(db_name, config.db.username, config.db.password, {
          host: config.db.host
          ,dialect: config.db.type
          ,logging: config.db.logging ? function(msg) {
              fs.appendFileSync("db.log", msg.replace("Executing (default): ", "") + "\n\n");
              //logger.debug(msg);
          } : false
          ,pool: {
              idle: 20000
          }
          ,define: {
              createdAt: 'created_at'
              ,updatedAt: 'updated_at'
          }
      });
  
      var db = {};
      fs.readdirSync("./src/db").forEach(function(file) {
          var model = sequelize.import("../src/db/" + file);
          db[model.name] = model;
      });
  
      Object.keys(db).reduce(function(acc, modelName) {
          var model = db[modelName];
          if("associate" in model) {
              return acc.concat([model]);
          }
          return acc;
      }, []).forEach(function(model) {
          model.associate.apply(model, [db]);
      });
  
      return [sequelize, db];
  }
docs: /////////////////////////////////////////////////////////////////////////////