make CDB lookup a class