Update tests to use document_controls table in archive
Add sha1 column to files table and add trigger to populate it