HeaderDB: rewrite locator creation

Fixes header download.