trying to cut memory leaks

possible one here, as I assign rows to a temp variable and then return
it.

instead, just use doc.rows, and do not return anything to callback, as
this is already done with the reducer call