text: const { Pool } = require("pg");
  require('dotenv').config();
  
  const PG_URI = process.env.PG_URI;
  
  // create a new pool here using the connection string above
  const pool = new Pool({
    connectionString: PG_URI, 
  });
  
  module.exports = {
    //use if using class method
    // pool,
  
    // use if creating tables in elephant
    query: (text, params, callback) => {
      console.log('executed query', text);
      return pool.query(text, params, callback);
    },
  
  };