Works around database caching and lazy commiting.