Avoid large updates to hits db

This increases performance signifigantly. It needs some more work to avoid errors when used with a persistent database.