set the state of every layer in cdbm