Added basic where logic to sequelize