Added query creation from string and subsequent execution to the sample notmuch-server.c

The query is executed on the notmuch database,
and all the messages which match the query terms are printed (from, to, subject and date headers)