update script create store add permission and update permission