Made ConnectionFactory a singleton