collect sql session script