sprintf(sql, "
UPDATE %s SET date=\'%s\', type=\'graph\', r_start=%d, r_end=%d, unit=%d, min=%d, max=%d, blend=\'%s\', dbname=\'%s\', filename=\'%s\', WHERE name=\'%s\' AND species=\'%s\' AND revision=\'%s\' AND target=\'%s\';
", CACHE_TABLE, egt->date, egt->graphs[i]->start, egt->graphs[i]->end,
egt->graphs[i]->unit, egt->min, egt->max, blendname, NULL, NULL,
egt->name, egt->species, egt->revision, egt->graphs[i]->target);

