PostgreSQL connect / disconnect.