update packages and modify schema