Catalog: fix GetDKey and InsertDKey