Support insertWithOnConflict

@iomu implemented this feature, I know I'd use it if merged.