I use node-pg to access my postgres server from my rest backend. It works pretty well, but it does return the uuid keys directly by default, both when querying for a record