Fixes for search and endpoints

Handle the search where the db_name is different than the product name
Fix the endpoint switch to work properly when the only regions are us and uk