added support for getting the data from the rrd files in json or csv format