Inserting and editing values in stockitem database working