Refactoring save and update grocery parameter passing, core ns in repl and server ns