Set provider type to db entity