Commit for transactions