write a new csv as well as append to master csv