clean up active record connection