Updated insert statement to reference results of download process