Offline: support edit/insert entities