Created a context manager to handle reused and new connections to the neo4j db.