Adds rollback to allow for query retry.
Merge pull request #7 from saebyn/rollback-on-retry

Adds rollback to allow for query retry.