redraw gnuplot only if SQL for it changes