Updated the CKAN search script.

 * no longer starts over from the beginning on each run by clearing the
   output table
 * marks datasets not present in CKAN in the database
 * performs only one CKAN API call per dataset, which reduces lag
   massively
CKAN search results for more than half of datasets.