Hook up graph to firebase