connected the messages to the firebase DB