Relax url validation to match pg:///dbname

Postgres connection string could be without host name (for example, pg:///dbname or pg:/// is a valid connection string). A url without hostname indicate that the connection should utilise UNIX domain socket instead of tcp socket