Put the onion, garlic, and ginger into a blender or food processor. Add 2 tablespoons of water. Blend until smooth, pausing and using a spatula to push mixture down if necessary. Pour the mixture into a bowl and set aside while preparing the tomatoes.
Peel (and deseed, if desired) the tomatoes. Put them in the (unwashed) blender or food pro