Refactor how we get incidents

This will need testing by someone.
What I mean is that I'm getting a "Undefined variable: incidentDate" so either change the value of $incidentDate to $date or change the $incidentDate below to $date :)