API bug fix

the IF statement checking if the database isset was incorrect.
Issue #5 closed - Product status updates on option change

The user can now change the status of a product easily, by just
changing the dropdown option.