Added group meta/state getters
Added base t.w.s user/group/realm code to integrate DB