overhaul to get graphs drawing data from db , all in php though