Factor loader into a database storer and a batch loader

Fine by me -- I believe upstart aggregates them.