Add script to clean orphean lienks in DB