title: Function Return not Working
body: <p>I am working in Node and trying to load the next sequence from my db. I am able to access the db, load and return the sequence within my function, but I am not able to access it outside of the function.</p>
  
  <pre><code>function getRunId() {
          counters.findOne({_id: 'Run_ID'}, function(err, resp) {
              if(err) {
                  console.log(err);
              }
              console.log('Seq: ' + resp.sequence); // Console Output = Seq: 1234
              return resp.sequence;
          });
      };
  
      var currentRunId = getRunId(); 
      console.log('Run_ID: ' + currentRunId); // Console Output = CRID: undefined
  </code></pre>
  
  <p>I've checked several pages worth of Stack Overflow issues relating to using callback's, async (node module), how to properly return values in the function, etc... but none of them get me closer to accessing currentRunId outside of the function. </p>
  
  <p>Is this issue further complicated by the use of Mongo queries inside my function?</p>