Added support of INSERTs in the data processing script and a bunch of tests.