Save generated moi in DB. Refactor, viz objects generation goes in model.