Added checks and error notices on item stocking form.
Restructured transactions to use multiple sql tables