Switched to multiple transactions for importer SQL query