Tomato sauce (like ketchup)

We need: Tomatoes – 1 kgOnion – 2-3 onionsBell pepper -1 pc (without it)Garlic – 2-3 cloves (but to taste)Salt-pepper-sugar – to tasteSpices – coriander, hot pepper, cumin.