A small helper of node-postgres can help you build queries more easily and safely
github.com/ckpack/pg-helper
ckpack/pg-helper