For tracking cases and adding to sqlite db.