Changed how the connection string is formated to maintain backwards compatibility with libpq 9.1