Added batch execution to SQL