Refactored CLI#import_remote_database to use better exception reporting.