Replace `.map()` with `.each()`
Spacing
Merge pull request #2309 from overlookmotel/hooks-bug-fix

Bug fix for hooks
Fix for intermittent bug in findorcreate with transaction
Refactor of sequelize methods handling in abstract qg. Made sequelize.where smarter