changing controllers to sequelize