Factor loader into a database storer and a batch loader

I am not too worried about it -- I think it would pretty negatively affect readability, and string allocs aren't going to be the bottleneck here