1. Added log4j functionality.
2. Added c3p0 connection-pool to fix the connection issue.