Added parameter &shema
Moved preparation of rows by snippet into chunks processing