added active record connection