update the delete clause
2014.07.10 Add team league SQL logic.