store results history in a csv file