add core data manager

add core data manager