Db links working

set links from database and put it in the graph in motion