Added SQL queries to app performance information, optimized SettingsManager a bit