public GroupBannedAgentsData GetGroupBannedUser(UUID requestingAgentID, UUID groupID, UUID agentID)
        {
            if (m_doRemoteOnly) {
                object remoteValue = DoRemote (requestingAgentID, groupID, agentID);
                return remoteValue != null ? (GroupBannedAgentsData)remoteValue : new GroupBannedAgentsData ();
            }

            QueryFilter filter = new QueryFilter();
            filter.andFilters["GroupID"] = groupID;
            filter.andFilters ["AgentID"] = agentID;

            List<string>  bUser = GD.Query(new[] {"AgentID, BanTime"}, _BANREALM, filter, null, null, null);

            GroupBannedAgentsData bannedUser = new GroupBannedAgentsData ();
            if (bUser.Count > 0)
            {
                bannedUser.AgentID = UUID.Parse (bUser [0]);
                bannedUser.BanDate = Util.ToDateTime (int.Parse (bUser [1]));   
            }
                            
            return bannedUser;
        }
        public List<GroupBannedAgentsData> GetGroupBannedMembers(UUID requestingAgentID, UUID groupID)
        {
            if (m_doRemoteOnly) {
                object remoteValue = DoRemote (requestingAgentID, groupID);
                return remoteValue != null ? (List<GroupBannedAgentsData>)remoteValue : new List<GroupBannedAgentsData> ();
            }

            QueryFilter filter = new QueryFilter();
            filter.andFilters["GroupID"] = groupID;
            List<string> bannedAgents = GD.Query(new[] {"AgentID, BanTime"}, _BANREALM, filter, null, null, null);

            var userList = new List<GroupBannedAgentsData>();
            if (bannedAgents.Count == 0)
                return userList;

            for (int i = 0; i < bannedAgents.Count; i += 2){
                GroupBannedAgentsData banUser = new GroupBannedAgentsData();
                banUser.AgentID = UUID.Parse (bannedAgents [i]);
                banUser.BanDate = DateTime.Parse(bannedAgents [i+1]).ToLocalTime();    

                userList.Add(banUser);
            }
            return userList;
        }