batch up all the rows to save them in one go

Fixes #5