Merge pull request #693 from shackbarth/master

cannot use strict here
need to run the inventory function in the database for it to do anything
Merge pull request #696 from shackbarth/invfix

need to run the inventory function in the database for it to do anything