Factor loader into a database storer and a batch loader

Process that do not daemonize should emit logs to stdout, imho.