More testing 
I’ve created a mapping for my Hama controller in SDL GamePad Tool. The mapping string is
0300ed338f0e00000300000000000000,Hama Double Action AirGrip,platform:Windows,crc:33ed,a:b2,b:b3,x:b0,y:b1,guide:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b6,righttrigger:b7,
and the controller works. So I’ve copied the same string to the defold database, but the controller is still recognized as PS3 Conroller and the mapping is wrong.
I’ve delete the local mapping in the SDL Tool, copied the string to the default gamecontrollerdb.txt of the SDL tool. Now the same problem as in defold. Controller gets recognized as PS3 Controller and mapping is wrong.
The mapping string reported by the SDL includes the CRC and is complete different to all other entries from the gamecontrollerdb.txt. So it seems in the SDL tool can support the controller, but only if you create a local mapping. The SDL tool first checks for local mappings and uses the CRC for this. If nothing is found, it checks the gamecontrollerdb.txt, but doesn’t use the CRC here. The reason for this handling is probably that the CRC is system-dependent. Makes sense, but it’s not really a solution to support controllers via gamecontrollerdb.txt that pretend to be something they’re not with a fake GUID 
Next, I’ve used defold gdc.exe to create a mapping string for the Hama controller:
030000008f0e00000300000000000000,USB Joystick ,a:b2,b:b3,x:b0,y:b1,back:b9,start:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:b12,dpdown:b14,dpleft:b15,dpright:b13,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,platform:Windows,
copied it to the defold gamecontrollerdb.txt, but does not get detected. Still PS3 and wrong mapping.
Summary: It’s possible to map the controller in the SDL tool, but the mapping string can’t simply be copied into the gamecontrollerdb.txt. In Defold, it wasn’t able to create a mapping for the controller.