Write values to csv file when server starts