add migrate.js to do the data copy auto