included facitilites for working with mongo. esp getting adj matrix