Moved settings to DB