echo json_encode($counts);
     break;
 case "edit":
     $info = $_GET;
     $output = array();
     foreach ($info as $key => $value) {
         if (strpos($key, "=") === false) {
             $output[$key] = "'" . $value . "'";
         }
     }
     //$_GET has request and action you must remove them from the array
     unset($output['request']);
     unset($output['action']);
     $finalString = implode(',', $output);
     $finalString = "'" . $user_id . "'," . $finalString;
     $update = $dbobj->updateApp($finalString);
     echo $finalString;
     //echo $update;
     break;
 case "change_flag":
     //change app status flag
     $msg = "";
     $update = $dbobj->updatestatus($cust_id, $action, $user_id, $msg);
     echo $update;
     break;
 case "unlock_app":
     //change app status flag
     $update = $dbobj->updatelockstatus($cust_id, $action);
     echo $update;
     break;
     //display DB result based on flag