Perform import in a transaction