I am using a database command to the gravity database to enable and disable groups like this:
sudo sqlite3 /etc/pihole/gravity.db "update 'group' set 'enabled' = 1 where name = 'groupname';" ; pihole restartdns reload
this works great. I also need the ability to query if a group is enabled or disabled when I start up my application to get current state. Anyone know the sqlite3 command? thanks.