fixes to KWIC, and configure from db_locals which reports to enable