fixed query problem, and removed junk code
Merge pull request #119 from stealthycoin/cookie_fix

fixed query problem, and removed junk code