Sugar does not lessen the acidity of the tomatoes. It only masks the acidic taste but also heightens the taste of the tomatoes. Try squeezing out some of the pulp of the tomatoes before cooking. Or try adding a bit of grated carrots, which absorb some of the acidity. Try not overcooking because it only increases the acid.