adjusted sql query fetch size to 20000