#11 - record the ref_to_message_id in the JDBC message store so we can correlate receipts against user messages
#11 - record outbound messages for tracking
#11 - correctly update the status based on whether its an inbound or outbound message