fixed query bug. Added header. I'm too cool