combined the query calls for messages index