title: pg-promise TypeError: Invalid "options" parameter
body: <p>I am trying to change my files from using the <code>pg</code> package to the <code>pg-promise</code> package. Everything was working fine with the initial <code>pg</code> solution I was using. However, switching over to <code>pg-promise</code> and using the documentation I am getting strange errors during setup.</p>
  
  <p><strong>The latest error:</strong></p>
  
  <pre><code>throw new TypeError('Invalid "options" parameter: ' + JSON.stringify(options));
  ^
  TypeError: Invalid "options" parameter: "postgres://me:complete@localhost:5432/education_be"
  </code></pre>
  
  <p><strong>My config file:</strong></p>
  
  <pre><code>require('dotenv').config();
  const pgp = require('pg-promise');
  
  // === My initial setup just using 'pg'
  // const { Pool } = require('pg');
  // const pool = new Pool({
  //  name: process.env.name,
  //  password: process.env.password,
  //  host: process.env.host,
  //  database: 'education_be',
  //  port: process.env.port
  // });
  
  // === My first attempt following the guide would receive errors like:
  // === Error: Option "user" is not recognized.
  const connection = {
      name: 'me',
      password: 'password',
      host: 'localhost',
      database: 'education_be',
      port: 5432
  };
  
  // === attempting (unsuccessfully) to just use the address
  const db = pgp('postgres://me:complete@localhost:5432/education_be');
  
  module.exports = db;
  </code></pre>