example for getting and saving relation data