title: Reference object Web SQL JavaScript
body: <p>Check my code:</p>
  
  <pre><code>function callQuery(){
    db.transaction(function querySum(tx){
      tx.executeSql('SELECT SUM (entry) FROM ENTRIES',[], getNum, errorCB);
    });
  }
  
  function getNum(tx, results){
    len = results.rows.length;        
    for(var i=0; i&lt;len; i++){
      items = results.rows.item(i);
  
      console.log(items);
      document.querySelector('#sum').innerHTML += items;
    }
  }
  </code></pre>
  
  <p>The output is: <code>Object {SUM (entry): 459}</code> and <code>innerHTML</code> is <code>[object Object]</code>.</p>
  
  <p>How can I reference it? Do I have to store the SUM in another table to reference it?</p>