firebase helper functions

working on making it more intuitive to read and write data