remake ConnectionFactory class and log4j2.xml