Make scaled postgres connection info use hostname instead of IP

Modify `publish-db-connection-info` to set correct `PGHOST`