In a large heavy saucepan, heat the olive oil over medium heat. Add the onions, garlic, salt, basil, oregano and black pepper, and cook, stirring, until soft, 5 minutes. Add the tomatoes, tomato sauce and paste, wine, water, and sugar, stir well, and bring to a simmer. Lower the heat to medium-low, and simmer uncovered until thick and fragrant, 30 to 40 minutes, stirring occasionally.
Remove from the heat, and use as needed.
Yield: about 4 cups