new and improved Uploadfile  - writes to company table and search index