Playing with SQL inside Ruby, and beginning to take a crack at the meta programming methods behind Activerecord