public function update($setting, $value){
        if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
            $this->set($setting, $value);
        }
        return $this;
    }