fixup queries
add in category CSV printout