edits to database.yml and included relationships in appointment.rb