I think this post will answer your question and show you how to create firebase herarchies incorporating the userid.