move UID related operations from chunk/col to db/col