_setup_settings: be more robust against partial db creation

This should eliminate the most common problem cases where `rm db/ob.db` is required for new users struggling to get a clean first run.