Or maybe I could make a db-trigger to update the attribute when stock is <=0 thoughts?