add ccdsum in database