Fix replaying queries from aborted transactions
Instead of re-executing the QSqlQuery that was part of the initial
transaction run we store the plain SQL statement and bind values and
we create a new QSqlQuery when replaying the transaction.
This seems to fix an issue when certain queries were not re-executed
properly on MySQL.