Add versioning support for deleteMatchingStatements

Select matching statements prior deletion and assign those to the versioning event.