So flush is actually currently essential for counter to work correctly.
Start making changes to make count periodic.
I have problem with concurrency on perodic connexions to db.

Let's make a clean branch to solve this!