Use the singleton database object with database::new syntax Pass the connected database object to the settings object so settings object does not have to create another connection
Ensured the values are of boolean type as PHP 7.1 treats them strange
* update settings using real boolean