Support switching database to hz.