Saving conversation histroy to DB