Reimplement `postgresql.js` using Cadence.