The invention relates to compounds of formula (I) wherein U, V, W, X, R1, R2, R3, R4, R5, R6, A, B, D, E, G, m and n are as defined in the description, to pharmaceutically acceptable salts of such compounds for use in the manufacture of a medicament for the prevention or treatment of a bacterial infection. Certain compounds of formula (I) are new and are also part of this invention.