In a blender or food processor, puree the onion and garlic with some of the vinegar. Melt butter in large stock pot, add onion and garlic puree, saute for about 5 minutes. Add the ketchup and stir very well. Start adding the rest of the ingredients 1 at a time stirring well and often. Simmer for about 1 hour, stirring frequently.