msg_query_success implemented