fixes #26 made SqlInputGenerator autocloseable. The underlying db connection is closed.