Move classes for work with DB in root dir. Fix problems with num cycles, after change to Enum
Migrate generator to .NET8