migrate groups table