SQL script: Fixed issue with concurrent access not in commit
Fixed issue #3189