try with resources 4 jdbc
refactoring