wip: mysql scanner to check for correct segments already existing
generate 1 config per day, too big otherwise