db updates for runstate change