commit the transaction