Only use the ddoc cache for sharded dbs
Fix new _stats with added 'working properly' feature