Added some helper methods to GenericDAO