improvments to mongodb interaction, saving and searching for graphs via id in the db works