modified the schema and also added update logic