upsert to solve insert collision issue on modulefti

legacy computes a FTI index and tries to insert into modulefti table, after inserting module_files rows. REwrite has a trigger on module_files that beats it to the punch. Adding a trigger to modulefti to convert insert to update