using fetch to get all the messages