restructured table clientHistory