using c3p0 for jdbc connection pooling to avoid leaking of connection