pulls data from MySQL and uses it in the graph