An idea: move namedqueries from pgspecial into cli_helpers, so all clis could use it. Perhaps config handling might move there also.