Implemented saving records in the trust agent