DBBrowserDB: Fix transaction logic in execute{Multi}SQL

Create a restore point in executeSQL and executeMultiSQL instead of just
setting the dirty flag. This way the changes made using these functions
are not applied immediately when no restore point was created yet.