Changed model to have a OneToOne relationship between devices and their
positions.