Updating links and queries