update schema for mongodb.