move migration to mongod