check which databases exist