Factor loader into a database storer and a batch loader

Lines like this remind me why I love python. This is ripe for a `@Timing`-esque annotation.