Inserting same doc file multiple times generated duplicates (and delete_doc_files deletes all)
Running multiple times "insert_doc_file" on the same file inserts the file multiple times.
If there are changes in the file, they appear only in the last insertion (can be considered fine ?). But... delete_doc_files deletes all versions.