change loadData to serializeModel

Refactor loadData / saveData by moving it to the repo