changed GraphDb :: getNodesOfTypeWithProperty to go faster