Add db enable for stat
Merge pull request #29 from hwchiu/core-db-fix

When DB is disabled, return empty result to the stat page