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

...sing generic history table