Added sequelize functionality and unit tests