code: def register_db(cls, dbname):
          
          def decorator(subclass):
              """Register as decorator function."""
              cls._dbs[dbname] = subclass
              subclass.name = dbname
              return subclass
          return decorator
docs: Register method to keep list of dbs.