UPDATE: Added log4j properties, REFACTOR: Moved connection creation inside the Factory