make a injectable connection factory