Added database entries and update logic for the control plant