public function create(array $params, $name = null)
    {
        if ($name === null) {
            $name = $this->mainname;
        }
        $db = DB::create($params);
        $this->set($db, $name);
        return $db;
    }