Minor fixes.

+ Cache SQL results to avoid redundant hits
+ Refactored "wrs_seen" concept in light of caching
+ Apply name-matching RE to only one name at a time
+ Don't use comma to separate names in CSV output.