Use the dbi_driver attribute to look up the engine subclass.

And throw errors for bogus URIs.