GetFriendAndIgnore converted to QueryDatabase