public function set(DB $db, $name = null)
    {
        if ($name === null) {
            $name = $this->mainname;
        }
        if (isset($this->dbs[$name])) {
            throw new StorageEngaged($name);
        }
        $this->dbs[$name] = $db;
    }