sql/ruby integration exercise