Changed the way d-days are recorded. They were put into the DB one by
one, then pulled back out for counting. That was slow.

Now everything is stored in a list that is passed between functions
doing analysis. That way they will only be written to the DB once at the
end of the analysis.

Currently a work in progress.