Factor loader into a database storer and a batch loader

I actually prefer loaduuid everywhere; what is the go way here?