How can I automatically download the csv or json data for a report