There's no magic, you just need one INSERT or UPDATE statement for each
table you're updating.
If you have transactions (with MySQL that's only if you use the BDB
tables) you can wrap the whole thing in a BEGIN and COMMIT and then
your set of changes will be treated as a unit and will only be applied
to the database if they all succeed.