MOCCA-SURVEY database I. Accreting white dwarf binary systems in globular clusters II. Cataclysmic variables - progenitors and population at birth