Synthesis of N-heterocycles as anti-asthma drugs and compounds with antimycobacterial properties