Code to get a jdbc connection