Fix table-based SQL delete actions