Bug fixed: JSON file now being created

Incorrect DB settings, and bugs in CSV file