DataDAO changed to try-with-resource