title: Nodejs node-sqlite3 run callback not working
body: <p>I am trying to perform a delete of a row in sqlite db using <code>nodejs</code> and <code>node-sqlite3</code> package.</p>
  
  <p>When I run the delete command, and manually check the entries, I can see that the query successfully deleted that row but I cant seem to write the code that confirms this.</p>
  
  <p>This is the query</p>
  
  <pre><code>db.run("DELETE FROM Table1 WHERE id=? AND username=?", [id, user], function(error) {
  console.log(error);
  });
  </code></pre>
  
  <p>Regardless of a wrong or right input, it outputs <code>null</code> to the console. If the right details are given, it deletes it and prints null, if wrong id and user are given, it still prints null.</p>
  
  <p>Any ideas on what might be wrong?</p>
  
  <p>Thanks</p>