Improve to manage a jdbc connection