initial commit
moved all the core data logic in the manager
automatically save context