Fixed a bug.

The transaction puller wouldn't stop downloading transaction pages
if an error occurred during an update.
Fixed error in migration SQL script.
More work on "other-shop" transactions.