increased size of sql statement for avoiding memory leak