Functions for dealing with a PostgresSQL connection string