Some db importer bug-fixes

* Better error logging
* Some old databases didn't yet have a 'revs.no_attachments' column, so
  don't rely on it
* On failure, restore the old attachments directory
* Don't bother upgrading the old _replicator db (its name will be
  rejected as illegal anyway); just delete it.