From Adaptive Query Release to Machine Unlearning