CLEREZZA-866: Changed the way jdbc connections are managed. Some code cleanup to do.