Updated relationships for models
Updated tables for foreign keys