Tidied stuff up, created module for helpers

Added query_examples to demonstrate how we can retrieve documents from
mongo