socket.io emit events on save, update, and delete