minor changes for applying default pg_connect.