updated the remove method from dao