text: "use strict";
  
  var fs        = require("fs");
  var path      = require("path");
  var Sequelize = require("sequelize");
  var sequelize = new Sequelize('heroku_e56800c88b7a6b4', process.env.MYSQL_USER, process.env.MYSQL_PASSWORD, {
      host: process.env.MYSQL_URL,
      dialect: 'mysql',
      pool: {
          max: 9,
          min: 0,
          idle: 10000
      }
  });
  
  var db = {};
  
  fs
      .readdirSync(__dirname)
      .filter(function(file) {
          return (file.indexOf(".") !== 0) && (file !== "index.js");
      })
      .forEach(function(file) {
          var model = sequelize["import"](path.join(__dirname, file));
          db[model.name] = model;
      });
  
  Object.keys(db).forEach(function(modelName) {
      if ("associate" in db[modelName]) {
          db[modelName].associate(db);
      }
  });
  
  db.sequelize = sequelize;
  db.Sequelize = Sequelize;
  
  module.exports = db;