adding logic to include module history table for the module instead of u...

...sing generic history table
Since this is the same insert statement, shouldn't it be taken out of the if statement?