Column name formating to handle comma and jdbc connection close after successful query execution