Update exception message
Update database model
Configuration class && update unit tests

* Create a configuration class
* Update unit tests
Done settings model + unit tests