Fix DB schema to support easy deletion of whole contests or tasks.
YamlImporter: Update for working with datasets.