title: Extracting sql data in ionic 5 without getting a ZoneAwarePromise
body: <p>Using the ionic 5 framework I am trying to extract data from my SQLite database using a function:</p>
  <pre><code>getGlobal(name, db) {
    console.log('... getting global');
          
    var result;
      
    sqlQuery = 'SELECT `value` FROM globals WHERE `name` = &quot;' + name + '&quot;';
    console.log('sql query: ' + sqlQuery); 
          
    result = db.executeSql(sqlQuery, []).then(value =&gt; {
      return JSON.parse(value.rows.item(0).value);
    });
          
    console.log('return: ', result);
          
    return result;
  }
  </code></pre>
  <p>I have tried even further &quot;.then(data =&gt; {})&quot; chaining to extract the correct result but withoug success. Always produces a ZoneAwarePromise.</p>
  <p>Not sure where I am going wrong</p>