insert and update delayed