Actually use transactions for mysql updates

BEGIN; END; does not work similar to sqlite here.