Refactored extract country names functionality. Didnt work in psql
Updated Rails