the number of d days that occurred in a given window are now stored in
the DB!

There should really be a method that controls when tables are updated.
right now they get updated every time I run the program. this takes a
lot of time.