This change improves function description and simplifies logic in statedb update and commit operations.