Add cookbook entry for returning query as string
Closes #354