Allow to connect without a dbname param

The PDO connection allow the instantiation of the connection even if the dbname
parameter isn't present. This change is there to make sure both behave the same way.
Merge pull request #629 from mikeSimonson/patch-1

Allow to connect without a dbname param