How to save custom value in DB from custom .module
Once you get your nid of the node you can use the code below to change the field value 

  $node = node_load($nid);

   unset($node-&gt;field_example['und'][0]['value']);
    //similarly for other fields you can change the value
    node_save($node);