1 Chat programs are common on the web these days.
2 It is an ajax based function so that without refreshing the page it can send the chat text to the server.
3 The ID field is an auto-increment field so that values to this ID field will be incremented automatically.