chat histroy in db are stored as ( users, history )