Pared down clone of Rails' ActiveRecord