Moved stmt2.close statment into loop, q4