Created ConnectionFactory Class.