Adapt to hx509 changes, use hdb_db_dir().