Factor loader into a database storer and a batch loader

The stale load worker checks it and does the right thing. It's structured this way since we want to be robust to the machine dying without any signals.