Implemented function that removes records with 0 active users form history of apps usage.