implemented a first version of SQLQueryTask