Extended transaction to use Query<T> and Execute

Fairly trivial