Extended transaction to use Query<T> and Execute