transaction query update