new method for updating/insert/delete