Sorry to hear about your problems. Proper care and maintenance is the best way to make any car last. The V6 engines are notorious for needing a little bit more care because those Ford Duratecs really like eating oil.
It's possible that you got two lemmings for engines, but typically Mazdas are good for well into the 100k mile range.