Save a query, save the world

No need to fetch the maintenance pref from the database on every panel.
The only time it can possibly return a stale value is immediately after
step prefs_save.