fixed queries to decrement items by 1
Merge pull request #4 from norrislee/master

fixed queries to decrement items by 1