Made queries into a transaction