small fixes. DB update required...

update viking.machines m, viking.models o set m.model_id=o.model_id 
where m.model_id is null and m.group_id=o.group_id and m.name like
CONCAT('%', o.name, '%');
ALTER TABLE `viking`.`machines` 
ADD COLUMN `details` VARCHAR(60) NULL AFTER `model_id`;
update viking.machines m, viking.models o set m.details=o.details where
m.model_id=o.model_id AND m.model_id is not null;