update schema and data