Use cid from database.