update chatroom db for the right websocket calls