Dispose after completing query. Don't like this, to be revised.