Separeted insert and update