Support INSERT in accelerator, fixes #398.