public function addQuery(DBUtilQuery $query) {
        if($query->getName() !== null) {
            $this->_queryQueue[$query->getName()] = $query;
        } else {
            $this->_queryQueue[] = $query;
        }

        new Logger('Query added to the queue.', Logger::DEBUG, __CLASS__, __LINE__);
        return $this;
    }