Return request on database querying

db query() function returns undefined instead of request object. This prevents from using streaming like this:

    db.view(...).pipe(writeStream);