changed output to
db.copyDatabase(fromdb, todb, fromhost, username, password)