Fix namespace supprt

The constant TM_CLASS was not containing the fully wualified classname.
Needed for DatabaseMap to work correctly