Semantic classification of transaction data records in distributed database