remove hooks and update entry in db