added analysis_id to errors.db for correctness