Saved CSV fields into a JSON following conversation with MBrough and RPollock
Heavy refactoring to store raw XML in the database.