poolB.connect().then((client) => {
  client
    .query('select * from pg_stat_activity limit 1')
    .then((res) => {
      client.release();