converted to sequelize