fixed foreign key issue, and create tour form issue