update tpcc query