Update devices ValueID in database after initialize