Use try with resources for DB connection