You nee to have all the code in an enclosing try..catch..finally clause so that you close the stmt and rs objects in the finally clause.
And since you doing some updates, you need to set turn off autocommit for the connection object before the the try clause and then reset it in the finally clause, have a look at AddConceptMapTypesChangeset for an example