add activerecord example and logger