Added support for batch inserts

Batch inserts can now be done by passing in an array of rows, instead of just one row by itself.