Simplify Settings code a little bit

- Fixes error 500 on homepage with clean database