add insert and insertBatch methods