dataset relations, properly saving everything