Corrected logic for active projects code. This includes additions to the KPI and KPI_application map functions in statusdb to also emit "Close date". Already closed projects are now excluded from active projects