read sql query from datareader