Improving db query, adding currently-disabled code for basic grouping
Cleanup, adding configs
Recorder now uses batch inserts