Preheat your oven to 325°F. Warm up the oil in a small saucepan over medium heat. Add the finely chopped onion and cook, stirring, until it becomes tender, about 4-6 minutes. Incorporate the minced garlic and cook for an additional minute. Mix in the ketchup, tomato paste, brown sugar, water, vinegar, mustard, salt, and pepper. Bring everything to a boil, then reduce the heat and let it simmer uncovered until the sauce thickens slightly.