Small improvements on the server side of the chat