Added support for exporting SQL as part of Rollback operation.