If we get a DB error we can't handle, then crash.
Use limited queries when calculating stats
Slight speed-up of stats computation
Fix the sort order
Use Object.keys and native forEach instead of lodash.each
Merge pull request #132 from LocalData/chunked-stats

Use limited queries for stats computation