title: module.export function not returning results
body: <p>I'm having some problems returning results from a module function.<br>
  Below are two files that I'm working with.</p>
  
  <p>When I call the exported function it returns nothings.<br>
  Any suggestions/fixes as to why?  Does it have to do with callbacks?</p>
  
  <p><strong>models/index.js</strong>  </p>
  
  <pre><code>module.exports = exports = function(library) {    
      modCodes.findOne({name: library}, {modcode:1}, function(err, mc) {
        if (err) throw new Error(err);
        var db = mongoose.createConnection('mongodb://localhost:27017/' + mc.modcode + '?safe=true');
        var models = {
          Books: db.model('books', require('./schemas/books'))
          }
  
          return models;
      });
  
  };
  </code></pre>
  
  <p><strong>books.js</strong>  </p>
  
  <pre><code>var Models = require('../models');    
  console.log(Models("myLibrary")); //return nothing
  </code></pre>