text: const mysql = require('mysql2');
  
  async function main(){
  const pool =  mysql.createPool({
    host: 'localhost',
    user: process.env.DB_USER,
    database: process.env.DB_NAME,
    password : process.env.DB_PASSWORD,
    
    
  });
  // now get a Promise wrapped instance of that pool
  return promisePool = pool.promise();
  // query database using promises
  }