graph data from postgresql using gnuplot