title: How do I insert a record from one mongo database into another?
body: <p>As far as I see all commands operate on the same database in mongodb. I want to do something like this: </p>
  
  <blockquote>
    <p>db.mySourceCollection.find().forEach( function(x){ db.theDestinationCollection.save(x)} );</p>
  </blockquote>
  
  <p>where <code>mySourceCollection</code> is on <code>liveDatabase</code> and <code>theDestinationCollection</code> is on <code>testDatabase</code>.</p>