Create new base class _db.

Will be moving all classes to inherit from it, including URIs with no leading
"db:". So it does not need the code that handles the leading "db:"; that stuff
is still in db.pm.