Remove duplicated deprecated links from db.