cookies are now stored in db and only updated when needed