creating new thread for executing the neo4j database