How call a custom function after input got validated in hook_form_alter?
You can add your function in  the [#submit] key. For example : 

if ( empty($form['#submit']) ) {
  $form['#submit'] = array();
}
array_push($form['#submit'], 'do_database_updation');


The submit handler is called after the validation.