generate id using sequence