Basicly finished the function of order insert.