Lightweight clone of basic ActiveRecord features