fix for sequelize
query using the sequelize methods

query output is not flat anymore