fixes #62 delete datasets during fetch_dataset

added delete cascade to dataset and resource
only set dataset/resource if it actually exists in db_exception