Insert data to tables when I have relations

see this topic Database Relationship