update sql for associating groups with parent org