Refactor Sequelize to use lib folder