Changes to add the documents table