Created a multi-threaded connection factory