Save main model before saving relations