Add a UniqueConstraint in Dataset on (id, task_id).

It's required, otherwise the ForeignKey fk_active_dataset_id
cannot be created.