Updated db-settings to use a class