public function addCachedQuery($query, $results = null)
    {
        $this->queries[] = $query;
        if (!is_null($results))
            $this->queries_results[$query] = $results;
        return $this;
    }