fix pandas sql API call in selectQuery