added sql for links dynamic page
delete linksmodel