Migration script to move magento tables from one database to another