changed machinegroup model to and made machine a many to one relationship with machine group