Refactored the PruneRevsToMaxDepth in the Database class so that it uses the RunInTransaction method.