Write results to CSV instead of table in DB
Delete CSV file of preferences if it exists before creating a new one