Removed excessive DB updates in file association maintenance