updated all modules and refactorized sequelize code