Hook up graph to firebase

Im sure this can be done in a prettier way!

Issue #8