Build query to retrieve messages from back end and display them into InboxFragment