public function close()
    {
        if ( ! $this->link->close()) {
            throw new DbException('can\'t close database connection: ' . $this->link->error, $this->link->errno);
        }

        return true;
    }