begin activerecord initialization