added  caching
Merge branch 'dbstats'