change orm to sequelize and clean the architecture