after i use api to update the database results not immediately showing
Sounds like you have to 'force' the summary page to rebuild. You can do this by re-building your userContext (which will be the summary page):

$session = CRM_Core_Session::singleton;
CRM_Utils_System::redirect($session-&gt;readUserContext());