Fix update, insert, and delete