ciao-controller: Update internal state after DB state
ciao-controller: Update internal state after DB state

Ensure consistency by only updating the internal state of the datastore
after the datebase state has been updated.

Signed-off-by: Rob Bradford <c49e1dc14cd52e2644816db47123896e0ac79025@intel.com>

ciao-project/ciao,wcwxyz/ciao,markdryan/ciao,kaccardi/ciao,obedmr/ciao,wcwxyz/ciao,mrkz/ciao,erick0z/ciao,markdryan/ciao,kaccardi/ciao,mcastelino/ciao,rbradford/ciao,obedmr/ciao,matthewrsj/ciao,tpepper/ciao,01org/ciao,matthewrsj/ciao,rbradford/ciao,erick0z/ciao,mcastelino/ciao,tpepper/ciao,mcastelino/ciao,ciao-project/ciao,wcwxyz/ciao,obedmr/ciao,mrkz/ciao,matthewrsj/ciao,01org/ciao,mrkz/ciao,erick0z/ciao,tpepper/ciao