datagenerator: added categories, logging, db cleanup, ...