Rewrite migration

use python to migrate the data

remember to install pymongo