bug fix: [203] purged document should be removed from TDDatabase cache

Ok, so we've firmly established that my git-fu is weak.  This time I've got a pull request with just the modified files, on the correct base branch, and I promise I won't delete it out from under you.  Sorry again for all of the shenanigans.