Implemented adding of stats to local database