A compound of formula I, ** Formula ** wherein: any two of A, B and D are N and the other is CH; Z is selected from the group consisting of -CH2-, -C (O) - and -S (O) 2-; X is halogen or N, with the proviso that when X is halogen, R1 and R2 in formula I are absent; R1 and R2 are each independently selected from the group consisting of H, linear or branched alkyl having 1 to 6 carbon atoms, linear or branched C1-C6 heteroalkyl containing 1 to 2 heteroatoms selected independently from the group consisting of O , N and S; or R1 and R2, together with N to which they are attached, form a 5-8 membered heterocycloalkyl containing 1 to 2 heteroatoms selected independently from the group consisting of O, N and S; R3 and R4 are each independently selected from the group consisting of H, aryl, heteroaryl, fused aryl, or fused heteroaryl containing 5 to 10 atoms; wherein said aryl, heteroaryl, fused aryl, or fused heteroaryl is optionally and independently mono-, di-, or poly-substituted with a substituent selected from the group consisting of halogen, cyano, trifluoromethyl, hydroxy, and nitro; R5 is selected from the group consisting of linear or branched alkyl having 1 to 6 carbon atoms, linear or branched C1-C6 heteroalkyl containing 1 to 2 heteroatoms selected independently from the group consisting of O, N and S, cycloalkyl which contains 4 to 8 carbon atoms, 5 to 8 membered heterocycloalkyl containing 1 to 2 heteroatoms selected independently from the group consisting of O, N and S; m and n are each independently 0, 1 or 2; or a racemate or stereoisomer, or a pharmaceutically acceptable salt or solvate thereof.Un compuesto de fórmula I, **Fórmula** en la que: dos cualquiera de A, B y D son N y el otro es CH; Z se selecciona del grupo que consiste en -CH2-, -C(O)- y -S(O)2-; X es halógeno o N, con la condición de que cuando X es halógeno, R1 y R2 en la fórmula I están ausentes; R1 y R2 se seleccionan cada uno independientemente del grupo que consiste en H, alquilo lineal