first working version of mailbox with Query as the defining model.