Periodically update stats.

Do not run query on HTTP request.