Added Close Statements to the bottom of Query 2