This worries me a bit. If this function ever got called with the global `$db_name` being set to anything except "settings" it could overwrite the values of whatever has id 1 in that table. If it's only intended to work with the settings table it should probably just specifically load from settings, not `$db_name`.