moved coredata usage out of ZNPeer