added associations and foreign keys to models