[37] Fix relationship between tasks and assignments. Delete task when deleting an assignment