Fix in db model api.