Can now write CSV import to a local database