Updated insert script to use message_store