Creating script for migrating old data to new structure.