Added ability to get system settings from database.