fixed sync query for sequelize