my own truncated version of ActiveRecord in Rails; an exercise in metaprogramming