Move mergeOrders into shared functions file
Code tidy semicolons
Refactor: use sequelize.Sequelize