title: NodeJS mysql not inserting into table
body: <p>I have a database with a table called <code>responses</code> described as </p>
  
  <pre><code> +----------+----------+------+-----+---------+-------+
   | Field    | Type     | Null | Key | Default | Extra |
   +----------+----------+------+-----+---------+-------+
   | user     | char(25) | YES  |     | NULL    |       |
   | response | text     | YES  |     | NULL    |       |
   +----------+----------+------+-----+---------+-------+
  </code></pre>
  
  <p>When I am inserting into the database such as this:</p>
  
  <pre><code>connection.connect(function(err) {
   if (err) {
       console.error('error connecting: ' + err.stack);
       return;
   }
   console.log('connected as id ' + connection.threadId);
   var sql = "INSERT INTO responses (user, response) VALUES ('test_user', 'A')";
   connection.query(sql, function (err, result) {
       if (err) throw err;
       console.log("1 record inserted");
       connection.end();
   });
   });
  </code></pre>
  
  <p>It is throwing an error saying Error: Cannot enqueue Query after invoking quit.</p>
  
  <p>I connect to the DB fine in the application, but for some reason this query doesn't work, any suggestions?</p>