add primary documents crud