Migration script

script to automate migration