Builds a stripped-down version of Rails' ActiveRecord