adding support for bulk inserts (ie inserting an array of objects)