I think i did it right.
So I believe now the saving is working, however, I just need to load the material that was changed. I already set up a loading thing, but not sure what to do now.