Model should do anything with database settings.
Database settings belong to the table.
Changed config in the tests.
Make the framework more testable.
Set CORS options in the config.