store opinion data in database