* Fix #3766 - move database statistics processing into async task and only perform the calculation when the statistics tab is activated.