fetch country data using drop-down menu to query database