Split write access to insert and update