Make the update of daily hit totals idempotent

* properly this time
* Ill-advisedly, we've got a column called "count". This causes some problems.
  If you refer to it, use `count` (with backticks). Not doing so means that mySQL
  will read it as the function COUNT (with no parameters). This is probably not
  what you want when operating on this table.