added index to dataframe
runQuery now returns a dataframe object, so it can be called from ipython

 Please enter the commit message for your changes. Lines starting