db stuff working other that add edges for igraph