Add TODOs everywhere we want to use atomic batches
Convert the easier writes to atomic batches

    There are a bunch of writes split across function calls, but I'm not sure
    about departing that significantly from the mysql structure before the
    initial merge. Maybe I need to move into a second branch.