Changing db_init to new format