migration script for converting groups to orgs