Add connection factory example