title: create a temporary TABLE using a csv file
body: <p>In python, I would like to:</p>
  
  <ol>
  <li>Obtain a filename from a user to a csv file</li>
  <li>convert the csv into a temporary table </li>
  <li>run user defined queries against a central database to add data to the table</li>
  <li>output to a new csv for the user to use.</li>
  </ol>
  
  <p>I can handle most of these steps there are just a few things that I don't understand.</p>
  
  <p>Is this possible using a sqlite script?
  Would python sqlite class be able to execute that script? </p>
  
  <pre><code>conn = sqlite3.connect(central_database, check_same_thread=False)
  cur = self.conn.cursor()
  
  #user defines csv file and other params via http form -&gt; script
  
  cur.execute(script)
  csv = cur.fetchall()
  </code></pre>
  
  <p>I could be thinking about this all wrong. So here is my setup:</p>
  
  <ol>
  <li>python 3.6.3</li>
  <li>flask/jinja2 (javascript capable)</li>
  <li>sqlite 3.22.0</li>
  </ol>