removes unassociated groups from db