I have the following SQLite DB table app_vendor:
app_vendor
app | vendor | active --------------------- 123 | 10 | 1 123 | 20 | 0 // + 1 (10 is 1, 2