Working on the queries.

added query for a single email, with email id.
added query for a set of emails, with text content
still working on the queries.