Added basic where logic to sequelize
Merge branch 'logic' into milestones/2.0.0