Here:
It's a good idea to close the connection once you have built otherwise your code will 'hang' (do you know what this means?
You need the connection.end() see the docs here (in your case, pool in the docs refers to your db_connection) https://node-postgres.com/api/pool#pool-end
Ask me if you get stuck here.