In a large pot, heat the oil over medium heat. Add the onion and cook, stirring occasionally, until soft, about 5 minutes. Add the garlic and cook for 2 minutes longer. Add the remaining ingredients and cook, uncovered, stirring occasionally, until thickened, about 30 minutes. Season with salt and pepper, to taste.