add generic pk to base dao