fixed database for PageType class ref in CreateDocumentCommand