Implemented functions related in compiling of cdb.id and cdb.pair.