update_dns() method optimization.

update_dns() method in NetworkManager rewrited,
in new version used only one db api call.

Change-Id: Ib56c642d53e7a80439875bc304c4874d6ef4dcca
Merge "update_dns() method optimization."