update model and schema on server side.