update schema and config