Modify core data save API

provide data base selection