Add ability to query threads that are not associated with any group_id