DRY-out settings parsing
Directly pass dbname to connection.connect
Adds test to ensure missing dbname raises human readable error