docs: function(r) {
                              var results = dbClient.results();
                              if ( !results || results.rowCount < 1 ) {
                                  // if no results, return empty array
                                  deferred.resolve([]);
                                  return;
                              }
  
                              var hydratedResults = sqlAdaptor.hydrateResults(results);
  
                              if ( !cursor ) {
                                  deferred.resolve( hydratedResults );
                              } else {
                                  var stream = createStreamFrom(hydratedResults);
                                  deferred.resolve(stream );
                              }
                          }