cdb: add support for the very fast CDB constant database