blocks_to_rowrecs_q function

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