We can now save graph in mongoDB (plus fixed a bug in last commit)