it's now possible to specify the restore point name
only revert if the db wasn't dirty before

otherwise we might have reverted pre execute query transactions