How do you turn off clean URLs in the database? How do I turn off clean URLs in Drupal 8 from the database? What table do I look in and what variable do I have to change?
In drupal 8 this setting has been removed:

'clean_url' configuration setting removed; clean URLs are autodetected each request

I checked the database, there is really no setting with this name.