This should be ```RUNNING=$( sqlite3... ) || RUNNING=0```.