a active_record demo without rails