Don't forget to close ResultSet objects

(from experience), if the program runs long enough without closing the resultset objects, the java instance will run out of memory (they cannot be garbage-collected)