Fixing delete method in GenericDAO