created tables and established model relationships