refactor the core data manager and fix some bugs about core data
the navigation title can not display has been fixed