[db, schema] use a cache to search a type from its name
[db, viz] remove useless test for ui