impact_analysis: use db exceptions and parameters