store confidence in db