Where is the maintenance mode value in the database?
It's no longer a part of the config system; it's a part of the state system which is stored in the key_value table as a part of the state collection.