working fetch and save using uimanageddocument