The present invention relates to a compound of formula (I), a tautomer, an enantiomer or a diastereomer thereof, wherein R1, R2, R3 and X have the same meaning as that defined in the claims and the description. The present invention also relates to uses of such compounds as inhibitors of bacterial adhesion and biofilm formation on a surface, methods ex-vivo for preventing bacterial growth in biofilm formation and the use of such compounds in diagnosing or prognosing bacterial infections.