Project working with SQL in Ruby