Return request on database queriyng

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