updated Models
Foreiggn key issues