add legacy data script migration script