Fixed a bug in liveEditTable
Added transactions to avoid deletion of document while it is updated