got % working in ruby
updated .irbrc with sql function