Fix DB TX retrying, remove base_rating formula