db_update doesn't work with my code
Your form submission handler should take the submitted values from $form_state['values'], not $form. The node object is then available in $form_state['node'].  

For such task it would be better to implement hook_node_presave(), which is called right before a node is saved.