More improvements to Document, DocumentDao, and Partner document
functionality