update model db