update db model