homemade version of Ruby on Rails's ActiveRecord database interface library