update model table