MySQL: add index to inventory model