Fixed issue where an existing item id could be generated for adding new item, which broke the system. (Actually if you want to restock a selected item it will probably not properly update  the DB)