Write a method to load the settings from the database.