start of neo4j client and some refactoring