Factor loader into a database storer and a batch loader

typically you want []<structure> as the slice implementation already has a pointer to the struct. This is basically saying allocate a pointer to a list of pointers to pointers