updated data migration script