title: pg client.query() does not wait at the await
body: <p>I am don't understand why the <code>await</code> in front of a <code>pg</code> client request does not seem to work as the code after it runs before the code inside the <code>client.query()</code> function.</p>
  <pre><code>const {Pool, Client} = require('pg')
  const connectionString = 'postgressql://user@localhost:5432/database'
  
  const client = new Client({
      connectionString:connectionString
  })
  
  client.connect()
  
  database_func()
  
  async function database_func() {
    await client.query(`SELECT t FROM es ORDER BY t DESC LIMIT 1;`, (err,res) =&gt; {
      console.log('res')
      return;
    })
    client.end()
    console.log('after res')
  }
  </code></pre>
  <p>I would expect the above to return this:</p>
  <pre><code>=&gt; res
  =&gt; after res
  </code></pre>
  <p>Instead it returns:</p>
  <pre><code>=&gt; after res
  =&gt; res
  </code></pre>