Fixed ak functions and minor cleanup in katello records.