A little sql practice. Written in Ruby, Sept 2013