added GenericDao to the constructor