add the --dataset-latest functionality to load SQL from the latest datedir