public void loadAllGroups() {
        ResultSet data = query(QueryGen.selectAllGroups());
        while (iterateData(data)) {
            HashMap<PermissionFlag, Boolean> flags = new HashMap<PermissionFlag, Boolean>();
            String groupType = getString(data, "GroupType");
            String groupId = getString(data, "GroupId");
            String memberType = getString(data, "MemberType");
            String memberId = getString(data, "MemberId");
            ChunkyObject group = ChunkyManager.getObject(groupType, groupId);
            if (group != null && !(group instanceof ChunkyGroup)) {
                Logging.warning("Attempted to load a group that is NOT a group.");
                continue;
            }
            ChunkyObject member = ChunkyManager.getObject(memberType, memberId);
            if (group != null && member != null)
                member.addToGroup((ChunkyGroup) group);
        }
    }