Finish the migration script to migrate groups, photos and comments