Save data in csv