Stopped using Sequelize.and since it was messing up queries in some cases