db: pgsql worker should fail when the linked connection dies. Fixes #821