rowrecs_to_blocks_q function

Map a set of columns to rows (query based, take name of table).