fixes in the guide

updated the createQuery to the new find() implementation