use two managed object context to save data