Add transaction migration script, fixes #50