title: NodeJS with MongoDB freezes at find() method
body: <p>I am working on learning NodeJS by building a very simple pastebin. The code works as long as I do not try to persist the data with MongoDB.</p>
  
  <p>The app freezes while trying to open the 'List All' page. </p>
  
  <p>I zeroed in the issue to be in this part of the code,</p>
  
  <pre><code>HoldText = function(){
      this.db = new Db('name', new Server('localhost', 27017, {auto_reconnect: true}, {}), {safe: false});
      this.db.open(function(){});
  };
  
  HoldText.prototype.getCollection = function(callback) {
      this.db.collection('texts', function(error, text_collection) {
              if (error) callback(error);
              else callback(null, text_collection);
      });
  };
  
  
  HoldText.prototype.findAll = function(callback) {
      console.log("FLAG0");
      this.getCollection(function(error, text_collection) {
              if (error) {
                      callback(error);
                      console.log("FLAG 1");
              }
              else { 
                      console.log("FLAG 2");
                      text_collection.find().toArray(function(error, results) {
                              if( error ) { 
                                      console.log("FLAG3");
                                      callback(error);
                              } else {
                                      console.log("FLAG4");
                                      callback(null, results);
                              }
                              console.log("FLAG5");
                      });
              }
      });
  };
  console.log("FLAG6");
  </code></pre>
  
  <p>FLAGS 0,2, and 6 get called. 
  Does anyone have any words of advice for me?</p>