title: Cannot get return from module in nodejs + node-mysql
body: <p>I got the following code on my localhost:</p>
  
  <p>/model/company.js</p>
  
  <pre><code>var mysql      = require('mysql');
  var connection = mysql.createConnection({
    host     : 'localhost',
    user     : 'root',
    password : 'admin'
  });
  
  module.exports = {
      get: function(){
          connection.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
              return rows;
          })
      }       
  }
  </code></pre>
  
  <p>/routes/company.js</p>
  
  <pre><code>var Company    = require('../models/company')
  
  
  var express = require('express');
  var router = express.Router();
  
  router.route('/companies').get(function(req, res){
  
      console.log(Company.get());
      //res.json(Company.get());
  
  
  })
  </code></pre>
  
  <p>I already tried some things, but I think this is how it should be.
  But my <code>console.log</code> returns me <code>undefined</code>. I don't know what I'm doing wrong.</p>
  
  <p>If I do:</p>
  
  <pre><code> connection.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
                  console.log(rows)
              })
  </code></pre>
  
  <p>It works.</p>
  
  <p>What do I need to do (or study)?</p>