Added methods in message store interface to query messages.