Recording of what is done in state.db