Making delete queries much more efficient