Working on model relationships and database files