fixed get_countries sql