extracted api call to Client::API, added Populator class to store api results in the db