change db structure for messaging

instead of storing messages all together in firebase, messages are
stored with the room they will appear in