Making generic document and document_asset tables.