sql patch for client statuses