refdb: Properly load namespaces