rename hash to cookiehash in tables