Transform a DbConnectionFactory to static class