update schema and insert