added reachability function for neo4j