added backend data structures and firebase