 <!------------------------------------------------------->
 <cfif action is "makeTemplate">
 	<cfquery name="t" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
-		select * from cf_temp_taxonomy where 1=2
+		select * from cf_temp_taxon_name where 1=2
 	</cfquery>
 	<cffile action = "write" file = "#Application.webDirectory#/download/BulkTaxonomy.csv"
     	output = "#t.columnlist#" addNewLine = "no">

				insert into taxon_name (scientific_name) values ('#scientific_name#')
			</cfquery>
			<cfquery name="dup" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
				delete from cf_temp_taxonomy  where scientific_name='#scientific_name#' and upper(username)='#ucase(session.username)#'
			</cfquery>
			<br>loaded #scientific_name#
		</cftransaction>

<cfoutput>
	<!--- put this in a temp table --->
	<cfquery name="killOld" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		delete from cf_temp_taxon_name
	</cfquery>
	<cffile action="READ" file="#FiletoUpload#" variable="fileContent">
	<cfset fileContent=replace(fileContent,"'","''","all")>
