Chat get and post data to the firebase