data/db: move wrapped Rows declaration inside closure invocation