connect to database when getting driver name

Getting driver name throws exception ```Call to a member function getAttribute() on a non-object```, when database is not connected.
(This may happen when extending Query Builder with driver-dependent functionality, for instance with LIMIT and OFFSET on Ms Access or SQL Server.)