title: Accessing IntelliJ Database from Python
body: <p>I am using IntelliJ for my Python project.  I have created a database connection under Database where I can run queries with no problem.  So I have a list of .sql files that I would like to run from within python using the existing connection.  How do I go about it?  </p>
  
  <p>I can import various packages to pass the queries across to the external database, but since I already have this connection, I was wondering if it was possible to use it to pull data by simply just referring to the connection.</p>
  
  <p>Thanks,</p>