Factor loader into a database storer and a batch loader

do you think its worth storing the query strings somewhere so they arent reallocated each time?