Rebuilds the core functionality of Rails's ActiveRecord in plain Ruby