the completion of GenericDAO and its implementation!