set up active record connection