Implement insert and update in terms of alter