connections, increase robustness, add NLS, and prepare for Windows port. (vacuumdb and clusterdb will follow later.)