Improved error handling when importing from backups
Removed some debug logging
Work to reduce memory usage when exporting large datasets