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?  
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.
Thanks,
Rightclick on needed database in InteliJ Database tab and click on "Open Console".
There you can paste your sql and run it.
Accessing IntelliJ Database from Python