Adding stats class

Saving stats on couchbase