Added a few calls to close() on the ResultSet objects to try to avoid a memory leak in MySQL