controllers attaching to sensorgroups, made controller_id a unique col in sensorgroup