line plotter that gets data from postgres