another good recipe: http://www.seriouseats.com/recipes/2011/02/homemade-ketchup-from-scratch-recipe.html
You might need to buy:
- red wine or apple cider vinegar
- packed brown sugar
- salt
- dried red chili flakes