renamed execQuery to execSelectQuery