prevent mysql driver from pulling entire resultset into memory. explicitly close resultset and statement.