Type codes can be converted to type names using

string mdb_type_name(resource db, int code)