call history toggle switch update

call history toggle switch update
- fixed the sql error updating the contact list on AJAX