Add transaction commit method to migration script