split add and pending into two tables