change fixes a problem with pMain 'Inventory' 

The second file(sql) that you have on github is not needed.