Almost has save inventory working. For some reason insertOrUpdate is failing.