added improvements to connection pool.
Added new connection pool configurations to hibernate.