implemented mining, adding to neo4j db