Code simplification
dreapp_document_text table
Output JSON for the document
blah! Small correction