Match first part of version for two_part_version
Allow psql->run to be called without a database

The -l command doesn't need a database
Add tests for -w flag with old Pg versions