Insert messages in queue, get JSON with unread messages and set read=True