make controller index primary key
Implement the controllerPorts database to keep track of which controllers are plugged into which ports on the emulated machine