Added db connection in do_get_groups