Massive refactoring/cleanup pt1

Separate output (console/report) generation from DB analysis logic. Fix
-s not working.
cleanup pt2

Move all the parsing logic to DBParser and clarify enum_list
cleanup pt3