db relationship example from http://ruby.railstutorial.org/