-add refactoring code

-improved search algorithm countries en cities in database