Cowboys upset undefeated Saints, 24-17