basic device db update code established.