fixed queries to decrement items by 1