Changed database tables a bit and fixed few errors with table creation. Updated test data to use 10000 iterations.