graph/update stats/sql