cache database type