Changes to Group Activity and DbConnect

Changes to the group activity to reflect the new connections to the
external db. Heaps of code commented out, needs cleaning