Added comments to DAL and refactored method.

Refactored getActivePolicies into getTimeActivePolicies.