A bare-bones version of ActiveRecord