As the topic is. Due to the change of data structure, how to copy a collection from one database to another database during data migration?
db.copyDatabase(fromdb, todb, fromhost, username, password)
http://docs.mongodb.org/manual/reference/method/db.copyDatabase/