removed approach of looking up a country code parameter with a gem; instead query database directly