Factor loader into a database storer and a batch loader

The workers depend on it -- are you suggesting I move it into the module scope?