add the cookie and fix the answer mysql table