Here is a gist: https://gist.github.com/cvogt/9239494
I hope it is close enough to not have to do too much of a mental transfer. Basically your `all` method (and the connection related stuff) goes into RecordsDAO instead of the TableQuery. I don't know what `enumerateAllInChunksOfTwo` and `RecordWrites ` do, so you judge where to put it. The comments in the gist give you guidance. Maybe they should go into the DAO or even a separate object. Does this help?