Handling an array of values in insert()