move to logdir, so that count.db is generated in that dir