move the code that does the actual work of updating file ids to a seperate class, bundling all updates in a single transaction