modified GenericDAO & update from gui