Wrap in transaction.
Support processed queries.