update model, init the db