Rename DbSystem vars to dbSystem
Add TPG functions to groups, modify existing code to use them.
Remove old TPG methods from DB.
Merge branch 'dev-tpg-refactoring' into dev
Merge dev-tpg-refactoring into dev.