Add code to actually make the changes to the db

So far, only a very small amount of error checking (basically just
looking for column headers). Using the csv module's DictReader might be
worthwhile for easier validation, which I'll look into.