Added support for stats database