Generate master.cfg with the correct kcd_db_host set to localhost.