update values in DB for rate and comment