Modified thotController.js to add socket.io to updateChild, updateThot and delete methods