add order and line_item model, fix some model association bugs