Added python file for queries

File accesses the main database and runs the queries needed to get data
out for analysis.
Requirement: ipython notebooks