testing writing the spectrum to json files rather than rows in db.