Impl for insert, delete, and update