lowLevelQuerySql function

Low level function for retrieving data to a data frame