save tx record in leveldb