Extracts class Db for neo4j connection