title: How to connect PostgreSQL with hapi.js
body: <blockquote>
    <p>Does anyone managed to setup with <code>PostgreSQL</code> with <code>Hapi.js</code> framework? I have been looking for answers to this but <em>no avail</em>.</p>
  </blockquote>
  
  <p>I have the server all setup and ready to connect with PostgreSQL to the application. What is the <strong>most appropriate approach</strong> to connect the database with <code>pg-promise</code>?</p>
  
  <p>Also, what is the most <strong>efficient and shorter</strong> way of writing this code for this approach?</p>