store responses in db