Factor loader into a database storer and a batch loader

these seem like they should be configurable as well...