Halfway through commenting this exercise
Done commenting. Realized that I was conflating writes to the database structs with writes to the file