Update modified items in a separate transaction to solve some crashes
tabs -> spaces
Reverse formatting
Merge pull request #1 from nimast/feature/extract-modified-items-transaction

Extract modified items transaction from the main transaction