Implement Sequelize query